#Run one-line remote command
ssh test@host -p22 'hostname -f'
#Run Multi-Line Remote Command
ssh test@host -p22 << EOF
hostname -f
EOF
#Read Remote File and Run Remotely
ssh test@host -p22 './test.sh'
#Read my file and run it remotely
ssh test@host -p22 'bash -s' < test.sh